package com.zbkj.crmeb.chant.model;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 商户满减送商品表
 * @author daigb
 * @date:  2023-01-06 16:14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("eb_channel_discount_goods")
@ApiModel(value="ChannelDiscountGoods对象", description="商户满减送商品表")
public class ChannelDiscountGoods extends Model<ChannelDiscountGoods> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    @ApiModelProperty(value = "商户id")
    private Integer merId;
    
    @ApiModelProperty(value = "1: 活动商品 2: 活动赠品")
    private Integer type;

    @ApiModelProperty(value = "2: 指定商品 3: 指定不参与商品")
    private Integer goodsType;

    @ApiModelProperty(value = "满减送主表id")
    private Integer discountId;

    @ApiModelProperty(value = "参与商品id")
    private Integer goodsId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
